package com.rupertjones.globalcron.server.web.security;

import org.springframework.security.core.GrantedAuthority;


/**
 * <p>&copy Rupert Jones 2011,2012</p>
 *
 * @author rup
 */
public class Authority implements GrantedAuthority {
    private String authority;

    public Authority(String role) {
        this.authority = "ROLE_" + role;
    }

    @Override
    public String getAuthority() {
        return authority;
    }

    @Override
    public String toString() {
        return authority;
    }
}
